package team.freeroom.hotelmanage.controller.model;

/**
 * 分页参数模型
 */
public class Page {
    /**
     * 页码
     */
    private int page = 1;
    /**
     * 页面大小
     */
    private int rows;
    /**
     * 第一条数据的偏移量 = (page-1) * rows
     */
    private int offset;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }

    public int getOffset() {
        return offset;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }
}
